Skip to content

Fixed retain cycle bug#1

Open
ShannonChenCHN wants to merge 1 commit intoMTLxDC:masterfrom
ShannonChenCHN:master
Open

Fixed retain cycle bug#1
ShannonChenCHN wants to merge 1 commit intoMTLxDC:masterfrom
ShannonChenCHN:master

Conversation

@ShannonChenCHN
Copy link
Copy Markdown

When using NSTimer add controller as target, we need to keep an eye on retain cycle. The recommended way to avoid retain cycle is using block copy to make NSTimer its own target, according to Effective Objective-C 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants